<?php
$path = $_SERVER['PHP_SELF'];
$arr = explode('/', $path);
//$root = '/' . $arr[1];
$root = $_SERVER['HTTP_HOST'] == 'localhost'?'/' . $arr[1]:'';
$root2 = $_SERVER['HTTP_HOST'] == 'localhost'?'/' . $arr[1]:$_SERVER['HTTP_HOST'];
//$imgPath = $root . '/public/uploads/';
$doc = $_SERVER['DOCUMENT_ROOT'];
$imgPath = $root . '/public/uploads/';
$thumbPath = $root . '/public/uploads/thumb_';
//$savePath = $doc . $root . '/public/uploads/';
$savePath = '../../public/uploads/';
//$publicPath = $root . '/public/';
$publicPath = $root . '/public/';
?>